<!--[*
// ----------------------------------------------------------------------
// Source file:   $Source: /cvsroot/pn-commerce/pn-commerce/pntemplates/pncommerce_admin_customersearch.html,v $
//
// Last changes from:  $Author: landseer $
//
// Revision:           $Revision: 1.11 $
//
// Date of revision    $Date: 2005/03/22 13:59:45 $
//
// ----------------------------------------------------------------------
*]-->

<!--[ include file=pncommerce_admin_commonHeader.html ]-->

<fieldset>
    <legend>
        <!--[pnml name='_PNC_CUSTOMERSEARCH' html=1 ]-->&nbsp;&nbsp;<a <!--[pncManualURL Chapter="customermanagement" OpenHelpWindow='1']-->><!--[pnimg src="doc.gif" border='0' ]--></a>
    </legend>
    <br />
    <form action='<!--[ pncAdminModURL func=customersearch ]-->' method='post'>
    <!--IMPORTANT!-->
    <input type="hidden" name="authid" value="<!--[pnsecgenauthkey module="pncommerce"]-->">

    <div class="adminrow">
        <span class="admincell25">
            <!--[ pnml name='_PNC_SEARCHFOR' html=1 ]-->
        </span>
        <span class="admincell75">
			<input type='text' size='40' name='SearchString' value='<!--[ $SearchString ]-->'>
        </span>
    </div>
    <div class="adminrow">
        <span class="admincell25">
            <!--[ pnml name='_PNC_SEARCHIN' html=1 ]-->
        </span>
        <span class="admincell75">
			<!--[ html_options name=SearchArea options=$SearchAreaList selected=$SearchArea ]-->
        </span>
    </div>
    <div class="adminrow">
        <span class="admincell25">
            <!--[ pnml name='_PNC_ORDERBY' html=1 ]-->
        </span>
        <span class="admincell75">
			<!--[ html_options name=OrderBy options=$OrderByList selected=$OrderBy ]-->
        </span>
    </div>
    <div class="adminrow">
        <span class="admincell25">
        </span>
        <span class="admincell75">
			<br>
            <input type='submit' name='search' value='<!--[pnml name='_PNC_SUBMIT']-->'>
        </span>
    </div>
    </form>
    <br />

    <div style="margin-top: 20px; clear: both;">
    <!--[ if $CustomerCount > 0 ]-->
    <table style="border: 1px solid black;" cellpadding="5" width="100%">
        <tr>
            <th><!--[ pnml name='_PNC_USERNAME' html=1 ]--></th>
            <th><!--[ pnml name='_PNC_NAME' html=1 ]--></th>
            <th><!--[ pnml name='_PNC_ZIP' html=1 ]--></th>
            <th><!--[ pnml name='_PNC_CITY' html=1 ]--></th>
            <th><!--[ pnml name='_PNC_EMAIL' html=1 ]--></th>
            <th colspan='3'><!--[ pnml name='_PNC_ACTION' html=1 ]--></th>
        </tr>
    
        <!--[ foreach item=Customer from=$CustomerList ]-->
        <tr>
            <td class="tdc">
                <!--[ $Customer.KID ]-->
            </td>
            <td class="tdc">
                <!--[ $Customer.Name ]-->
            </td>
            <td class="tdc">
                <!--[ $Customer.Zip ]-->
            </td>
    
            <td class="tdc">
                <!--[ $Customer.City ]-->
            </td>
    
            <td class="tdc">
                <!--[ $Customer.Email ]-->
            </td>
            <td class="tdc">
                <form action='<!--[ pncUserModURL func=userdata ]-->' method='post'>
                <!--IMPORTANT!-->
                <input type="hidden" name="authid" value="<!--[pnsecgenauthkey module="pncommerce"]-->">
                <input type='hidden' name='UserID' value='<!--[ $Customer.KID ]-->' >
                <input class='pn-button' type='submit' name='edit' value='<!--[pnml name='_PNC_EDIT' html=1 ]-->'>
                </form>
            </td>
            <td class="tdc">
                <form action='<!--[ pncUserModURL func=orderdata ]-->' method='post'>
                <!--IMPORTANT!-->
                <input type="hidden" name="authid" value="<!--[pnsecgenauthkey module="pncommerce"]-->">
                <input type='hidden' name='UserID' value='<!--[ $Customer.KID ]-->' >
                <input class='pn-button' type='submit' name='edit' value='<!--[pnml name='_PNC_ORDERDATA' html=1 ]-->'>
                </form>
            </td>
        </tr>
        <!--[ /foreach ]-->
    </table>
    <!--[ else ]-->
    <br />
    <div style="text-align:center;">
        <!--[ pnml name='_PNC_NOSEARCHRESULT' html=1 ]-->
    </div>
    <!--[ /if ]-->
    </div>
</fieldset>

<!--[ include file=pncommerce_admin_commonFooter.html ]-->